
// 列表头按钮配置
export const operateList = [
  // {
  //   name: "导出",
  //   type: "primary",
  //   icon: "el-icon-download",
  //   handleName: "export", //点击时返回的标识
  //   url: exportUrl,
  //   //auth: "auth:operlog:export", //权限字段
  // },
  {
    name: $i18n.t("common.add"),
    type: 'primary',
    icon: 'el-icon-circle-plus-outline',
    handleName: 'add' //点击时返回的标识
  },
  {
    name: $i18n.t("common.delete"),
    type: 'danger',
    icon: 'el-icon-delete',
    handleName: 'deleteBatch', //点击时返回的标识
    isMultiple: true
  }
]
// 行末按钮配置
export const rowConfig = [
  {
    name: $i18n.t("common.edit"),
    type: 'primary',
    class: 'row-btn-primary',
    handleName: 'edit' //点击时返回的标识
  },
  {
    name: $i18n.t("common.details"),
    type: 'info',
    class: 'row-btn-info',
    handleName: 'detail' //点击时返回的标识
  },
  {
    name: $i18n.t("common.delete"),
    type: 'danger',
    class: 'row-btn-danger',
    handleName: 'delete' //点击时返回的标识
  }
]
// 搜索条件配置
export const searchConfig = {
  inline: true,
  formDesc: {
    shiftCode: {
      type: 'input',
      label: $i18n.t('common.shiftCode')
    },
    shiftName: {
      type: 'input',
      label: $i18n.t('common.shiftName')
    }
    // shiftBeginTime: {
    //   type: 'timerange',
    //   label: '开始时间',
    //   attrs: {
    //     valueFormat: 'mm:ss',
    //     searchArrKey: ['shiftBeginTimeMin', 'shiftBeginTimeMax']
    //   },
    // },
    // shiftEndTime: {
    //   type: 'datetimerange',
    //   label: '结束时间',
    //   attrs: {
    //     valueFormat: 'mm:ss',
    //     searchArrKey: ['shiftEndTimeMin', 'shiftEndTimeMax']
    //   },
    // },
    // factoryCode: {
    //   type: 'input',
    //   label: '工厂编码',
    // },
  }
}
// 新增/删除表单配置
export const formDescDialog = {
  span: 24,
  disabled: false,
  isShowSubmitBtn: true,
  formDesc: {
    workCalendarDate: {
      type: 'date',
      label: $i18n.t('productOutputCalendar.workCalendarDate'),
      layout: 12,
      required: true,
      attrs: {
        valueFormat: 'yyyy-MM-dd'
      }
    },
    startDate: {
      type: 'date',
      label: $i18n.t('productOutputCalendar.startDate'),
      layout: 12,
      required: true,
      attrs: {
        valueFormat: 'yyyy-MM-dd'
      }
    },
    endDate: {
      type: 'date',
      label: $i18n.t('productOutputCalendar.endDate'),
      layout: 12,
      required: true,
      attrs: {
        valueFormat: 'yyyy-MM-dd'
      }
    }
  }
}
